package sg.edu.nus.iss.vmcs.maintenance;

import java.awt.event.*;
import java.awt.*;

public class PasswordListener implements ActionListener {

	AccessManager actrl;

	public PasswordListener(AccessManager ac) {
		actrl = ac;
	}

	public void actionPerformed(ActionEvent e) {
		TextField text;

		String pswd;

		text = (TextField) e.getSource();
		pswd = text.getText();
		actrl.processPassword(pswd);
	}
}